package edu.sctu.wujiayi.month05.day20150504.test;

/**
 * Created by user11 on 2015/5/4.
 */
public class TextOne {	public static void main(String[] args) {

    TextTenThree texxtenthree= new TextTenThree();
    DogTwo dogtwo= new DogTwo();
    DogThree dogthree= new DogThree();
    dogthree.getString(new TextTenTwo() {
        @Override
        public void getSrting(String string) {
            System.out.println("颜色："+string);
        }

        @Override
        public void getString(String string) {
            System.out.println("动作："+string);
        }

        @Override
        public void getInt(int string) {
            System.out.println("大小："+string);
        }
    });
    dogtwo.getString(new TextTenTwo(){


        @Override
        public void getSrting(String string) {
            System.out.println("颜色："+string);
        }

        @Override
        public void getString(String string) {
            System.out.println("动作："+string);
        }

        @Override
        public void getInt(int string) {
            System.out.println("大小："+string);
        }
    });
    texxtenthree.getString(new TextTenTwo() {

        @Override
        public void getSrting(String string) {
            System.out.println("颜色："+string);

        }

        @Override
        public void getString(String string) {
            System.out.println("动作："+string);
        }

        @Override
        public void getInt(int string) {
            System.out.println("大小："+string);
        }
    });
}

}
